package cn.edu.scau.cmi.houzhicong.factoryPattern.factory;

import cn.edu.scau.cmi.houzhicong.factoryPattern.domain.CarDamage;
import cn.edu.scau.cmi.houzhicong.factoryPattern.domain.Insurance;
import javafx.scene.image.Image;

public class CarDamageFactory extends InsuranceFactory {
    @Override
    public Insurance createInsurance(String name, String stuNum, Image image) {
        return new CarDamage(name, stuNum, image);
    }
}
